<?php
if(!defined ("BASEPATH")) exit("No Access");

class M_pengajuan extends arfaModel{
	function __construct(){
		parent::__construct();
		$this->table_name	= "pengajuan";
		$this->primary_key	= "ID_PENGAJUAN";
		$this->order_by		= "ID_PENGAJUAN ASC";
	}
	/* function getreg(){
		$query = $this->db->query("
		SELECT * FROM(
			SELECT TGL_CETAK, NOREG FROM pengajuan UNION ALL
			SELECT TGL_CETAK, NOREG2 FROM pengajuan UNION ALL
			SELECT TGL_CETAK, NOREG3 FROM pengajuan
		) t WHERE NOREG IS NOT NULL AND TGL_CETAK = CURDATE() ORDER BY NOREG DESC
		");
		return $query->row_array();
	} */
}
?>